

def read_txt(path, sep="\t", skip=1):
    data_dict = dict()
    i = 0
    with open(path, mode="r", encoding="utf-8") as dtf:
        for line in dtf.readlines():
            i = i + 1
            if (i <= skip):
                continue
            # print(type(line))
            str_list = line.split(sep)
            print(str_list)
            data_dict[str_list[0]] = [int(str_list[1]), int(str_list[2].split("\n")[0])]
            
    return data_dict


path = "./GPA计算/mark_masters_degree.txt"

print(read_txt(path))
